package cn.itcast.service;

import cn.itcast.pojo.Emp;
import cn.itcast.pojo.Result;
import com.baomidou.mybatisplus.extension.service.IService;

import java.time.LocalDate;
import java.util.List;

public interface EmpService extends IService<Emp> {
    Result select(Integer page, Integer pageSize);
    Result select(String name, Integer gender, LocalDate begin, LocalDate end, Integer page, Integer pageSize);

    Result addEmp(Emp emp);

    Result selectAll();

    Result deleteByIds(List<Integer> ids);

    Result selectById(Integer id);



    Result login(Emp emp);

    Result savemp(Emp emp);

    Result getEmpById(Integer id);

    Result updateEmp(Emp emp);

    Result removeEmpsByIds(List<Integer> ids);
}
